﻿using System;
using SharpSqlAnalyzer.nodes;
using SharpSqlAnalyzer.nodes.mssql;

namespace SharpSqlAnalyzer.stmt.mssql
{
	// Token: 0x0200018A RID: 394
	public class TMssqlUpdateText : TCustomSqlStatement
	{
		// Token: 0x06000DD9 RID: 3545 RVA: 0x00309248 File Offset: 0x00307448
		public TMssqlUpdateText(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstmssqlupdatetext;
		}

		// Token: 0x06000DDA RID: 3546 RVA: 0x0030925C File Offset: 0x0030745C
		internal override void buildsql()
		{
		}

		// Token: 0x06000DDB RID: 3547 RVA: 0x0030925E File Offset: 0x0030745E
		internal override void clear()
		{
		}

		// Token: 0x06000DDC RID: 3548 RVA: 0x00309260 File Offset: 0x00307460
		internal override string getasprettytext()
		{
			return "";
		}

		// Token: 0x06000DDD RID: 3549 RVA: 0x00309267 File Offset: 0x00307467
		internal virtual void iterate(TVisitorAbs pvisitor)
		{
		}

		// Token: 0x17000287 RID: 647
		// (get) Token: 0x06000DDE RID: 3550 RVA: 0x00309269 File Offset: 0x00307469
		// (set) Token: 0x06000DDF RID: 3551 RVA: 0x00309271 File Offset: 0x00307471
		public virtual TObjectName DestColumnName
		{
			get
			{
				return this.destColumnName;
			}
			set
			{
				this.destColumnName = value;
			}
		}

		// Token: 0x17000288 RID: 648
		// (get) Token: 0x06000DE0 RID: 3552 RVA: 0x0030927A File Offset: 0x0030747A
		// (set) Token: 0x06000DE1 RID: 3553 RVA: 0x00309282 File Offset: 0x00307482
		public virtual TObjectName DestTextPtr
		{
			get
			{
				return this.destTextPtr;
			}
			set
			{
				this.destTextPtr = value;
			}
		}

		// Token: 0x06000DE2 RID: 3554 RVA: 0x0030928C File Offset: 0x0030748C
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			TMssqlUpdateTextSqlNode tmssqlUpdateTextSqlNode = (TMssqlUpdateTextSqlNode)this.rootNode;
			base.doParseStatement(psql);
			this.destColumnName = tmssqlUpdateTextSqlNode.DestColumnName;
			this.destTextPtr = tmssqlUpdateTextSqlNode.DestTextPtr;
			return 0;
		}

		// Token: 0x06000DE3 RID: 3555 RVA: 0x003092D0 File Offset: 0x003074D0
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000DE4 RID: 3556 RVA: 0x003092E0 File Offset: 0x003074E0
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0400131F RID: 4895
		private TObjectName destColumnName;

		// Token: 0x04001320 RID: 4896
		private TObjectName destTextPtr;
	}
}
